package self.hoy.demo.cloud.service.impl;

import org.springframework.stereotype.Service;
import self.hoy.demo.cloud.dao.PaymentDao;
import self.hoy.demo.cloud.entities.Payment;
import self.hoy.demo.cloud.service.PaymentService;

import javax.annotation.Resource;

/**
 * @author 三共小不
 * @date 2020/5/29
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment param) {
        return paymentDao.create(param);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
